package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.market.feign.ZuulFeign.ZuulFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 功能描述:
 * 市场部消息
 * @Auther: zhlu
 * @Date: 2019/4/10 20:46
 * @Description:
 */
@RestController
@RequestMapping("/message")
public class MessageController {

    @Autowired
    ZuulFeign ZuulFeign;

    /**
     * 功能描述: 
     * 根据角色获取消息列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/4/10 20:48
     */
    @GetMapping("/getMessageList")
    public JsonResult getMessageList(@RequestParam Map<String,Object> params, Pager pager){
        return ZuulFeign.getMessageList(params, pager);
    }

}
